package com.cleaningcloud.cld.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.cleaningcloud.cld.mapper.CldRegularPlanDetailsMapper;
import com.cleaningcloud.cld.domain.CldRegularPlanDetails;
import com.cleaningcloud.cld.service.ICldRegularPlanDetailsService;

/**
 * 例会计划明细Service业务层处理
 * 
 * @author cleaningcloud
 * @date 2025-01-13
 */
@Service
public class CldRegularPlanDetailsServiceImpl implements ICldRegularPlanDetailsService 
{
    @Autowired
    private CldRegularPlanDetailsMapper cldRegularPlanDetailsMapper;

    /**
     * 查询例会计划明细
     * 
     * @param planDetailsId 例会计划明细主键
     * @return 例会计划明细
     */
    @Override
    public CldRegularPlanDetails selectCldRegularPlanDetailsByPlanDetailsId(Long planDetailsId)
    {
        return cldRegularPlanDetailsMapper.selectCldRegularPlanDetailsByPlanDetailsId(planDetailsId);
    }

    /**
     * 查询例会计划明细列表
     * 
     * @param cldRegularPlanDetails 例会计划明细
     * @return 例会计划明细
     */
    @Override
    public List<CldRegularPlanDetails> selectCldRegularPlanDetailsList(CldRegularPlanDetails cldRegularPlanDetails)
    {
        return cldRegularPlanDetailsMapper.selectCldRegularPlanDetailsList(cldRegularPlanDetails);
    }

    /**
     * 新增例会计划明细
     * 
     * @param cldRegularPlanDetails 例会计划明细
     * @return 结果
     */
    @Override
    public int insertCldRegularPlanDetails(CldRegularPlanDetails cldRegularPlanDetails)
    {
        return cldRegularPlanDetailsMapper.insertCldRegularPlanDetails(cldRegularPlanDetails);
    }

    /**
     * 修改例会计划明细
     * 
     * @param cldRegularPlanDetails 例会计划明细
     * @return 结果
     */
    @Override
    public int updateCldRegularPlanDetails(CldRegularPlanDetails cldRegularPlanDetails)
    {
        return cldRegularPlanDetailsMapper.updateCldRegularPlanDetails(cldRegularPlanDetails);
    }

    /**
     * 批量删除例会计划明细
     * 
     * @param planDetailsIds 需要删除的例会计划明细主键
     * @return 结果
     */
    @Override
    public int deleteCldRegularPlanDetailsByPlanDetailsIds(Long[] planDetailsIds)
    {
        return cldRegularPlanDetailsMapper.deleteCldRegularPlanDetailsByPlanDetailsIds(planDetailsIds);
    }

    /**
     * 删除例会计划明细信息
     * 
     * @param planDetailsId 例会计划明细主键
     * @return 结果
     */
    @Override
    public int deleteCldRegularPlanDetailsByPlanDetailsId(Long planDetailsId)
    {
        return cldRegularPlanDetailsMapper.deleteCldRegularPlanDetailsByPlanDetailsId(planDetailsId);
    }
}
